import request from '@/config/axios'

// 会员 VO
export interface MemberVipVO {
  id: number | string // 唯一编号
  userId: number // 用户编号
  cumulativePrice: number // 累计金额
  purchaseCount: number // 购买次数
  expireTime: Date // 到期时间
}

// 会员 API
export const MemberVipApi = {
  // 查询会员分页
  getVipPage: async (params: any) => {
    return await request.get({ url: `/member/vip/page`, params })
  },

  // 查询会员详情
  getVip: async (id: number | string) => {
    return await request.get({ url: `/member/vip/get/` + id })
  }
}
